package com.zz.schoolwall.dao;

import com.zz.schoolwall.domain.SchoolWallCommentDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface SchoolWallCommentDao {
    int deleteByPrimaryKey(Long commentId);
    int increaseLikeNum(Long commentId);
    int decreaseLikeNum(Long commentId);
    int increaseCommentNum(Long commentId);
    int decreaseCommentNum(Long commentId);
    int logicRemove(Long commentId);
    int insertSelective(SchoolWallCommentDO record);

    SchoolWallCommentDO selectByPrimaryKey(Long commentId);
    List<SchoolWallCommentDO> list(Map<String,Object> map);
    int count(Map<String,Object> map);
    int updateByPrimaryKeySelective(SchoolWallCommentDO record);
}